#-*- coding: utf-8 -*-
'''
Created on 20 сент. 2010

@author: ivan
'''
from google.appengine.api import users
from web import xss
menu = [
        {"id" : "news", "rus" : "Главная", "eng" : "Main"},
        {"id" : "screenshots", "rus" : "Внешний вид", "eng" : "Screenshots"},
        {"id" : "about", "rus" : "Описание", "eng" : "About/Description"},
        {"id" : "download", "rus" : "Скачать", "eng" : "Download"},
        {"id" : "donate", "rus" : "Поддержать (Donate)", "eng" : "Donate"},
        #{"id" : "radio", "rus" : "Радиостанции", "eng" : "Radio"},
        {"id" : "feedback", "rus" : "Отзывы", "eng" : "Feedback"},
        {"id" : "statistics", "rus" : "Статистика", "eng" : "Statistics"},
        #{"id" : "other", "rus" : "Другое", "eng" : "Other"},
        
        
       ]

title = {
        "rus" : "Foobnix простой и мощный плеер музыки для Linux",
        "eng" : "Foobnix Simple and Powerful music player for Linux"
        }

slogan = {
        "rus" : "Все лучшее в одном плеере",
        "eng" : "All best features in one player"
        }
search = {
        "rus" : "Хороший Муз. Поиск",
        "eng" : "Free Music Search"
        }
donate = {
         "rus":"""Foobnix бесплатный плеер(спасибо за Донейты). Я надеюсь вы буде довольны им. <a href="mailto:ivan.ivanenko@gmail.com" style="background:none">ivan.ivanenko@gmail.com</a>""",
          "eng":"""Foobnix is free of charge(thanks to your donations). I hope you'll enjoy it. <a href="mailto:ivan.ivanenko@gmail.com" style="background:none">ivan.ivanenko@gmail.com</a>"""
         }

admins = ["ivan.ivanenko"]

ARTICLES_ON_PAGE = 5

def get_admin_user():
    user = users.get_current_user()
    if user and user.nickname() in admins:
        return user
    return None

cleaner = xss.XssCleaner()
